package com.psjj.demo1;

public class Demo9 {
    public static void main(String[] args) {
        //代表3行2列数组
        int[][] arr = new int[3][2];
        //注意二维数组必须定义行数，列数可以暂时不定
        int[][] arr2 = new int[4][];
        arr2[0] = new int[1];
        arr2[1] = new int[2];
        arr2[2] = new int[3];
        arr2[3] = new int[4];
        for(int y=0;y<arr2.length;y++){
            for(int x=0;x<arr2[y].length;x++){
                arr2[y][x] = 8;
            }
        }
        for(int y=0;y<arr2.length;y++){
            for(int x=0;x<arr2[y].length;x++){
                System.out.print(arr2[y][x]+"\t");
            }
            System.out.println();
        }
        //int[][] arr3 = new int [][5];
    }
    /*public void method1(){
        method2(method3());
    }*/
}
